package com.itheima.io2.print;

import java.io.FileNotFoundException;
import java.io.OutputStream;
import java.io.PrintStream;

/**
 * @author Anomaly
 * @date 2023/2/10 0:06
 */
public class PrintStreamDemo {
    public static void main(String[] args) throws FileNotFoundException {
        PrintStream printStream = new PrintStream("file-io/src/test03.txt");
        printStream.print(123);
        printStream.print("asd1555");
        printStream.println(true);
        printStream.println("嘿嘿嘿");
        printStream.close();
    }
}
